package com.comleader.uap.common.response;

import lombok.Getter;

@Getter
public enum ResultEnum {

    /* 常用请求*/
    SUCCESS(200, "请求成功"),
    FAILED(-1, "请求失败"), VALIDATE_FAILED(400, "参数校验失败"),

    NOT_FOUND(404, "请求不存在"), METHOD_NOT_ALLOWED(405, "请求方法不正确"),

    // 常用在系统异常中
    ERROR(500, "系统异常");
    private int code;
    private String msg;

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}